package com.business.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.business.common.annotation.Excel;
import com.business.common.core.domain.BaseEntity;

/**
 * 角色对象 role
 * 
 * @author ruoyi
 * @date 2025-06-14
 */
public class Role extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 电影id */
    @Excel(name = "电影id")
    private Long movieId;
    private String movieName;

    /** 人物id */
    @Excel(name = "人物id")
    private Long personId;
    private String personName;
    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 主演 */
    @Excel(name = "主演")
    private Boolean isLead;

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMovieId(Long movieId) 
    {
        this.movieId = movieId;
    }

    public Long getMovieId() 
    {
        return movieId;
    }

    public void setPersonId(Long personId) 
    {
        this.personId = personId;
    }

    public Long getPersonId() 
    {
        return personId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setIsLead(Boolean isLead)
    {
        this.isLead = isLead;
    }

    public Boolean getIsLead()
    {
        return isLead;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("movieId", getMovieId())
            .append("personId", getPersonId())
            .append("name", getName())
            .append("isLead", getIsLead())
            .toString();
    }
}
